Java compile error: reached end of file while parsing } [closed]

Posted by adeo8 on Stack Overflow See other posts from Stack Overflow or by adeo8
Published on 2011-02-08T14:44:32Z Indexed on 2011/02/08 15:25 UTC
Read the original article Hit count: 167

Filed under:
|

I have the following source code

public class mod_MyMod extends BaseMod
public String Version()
{
     return "1.2_02";
}
public void AddRecipes(CraftingManager recipes)
{
   recipes.addRecipe(new ItemStack(Item.diamond), new Object[] {
      "#", Character.valueOf('#'), Block.dirt
   });
}

When I try to compile it I get the following error:

java:11: reached end of file while parsing }

What am I doing wrong? Any help appreciated.

© Stack Overflow or respective owner

Related posts about java

Related posts about compile-errors